#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
	string s;
	cin>>s;
	int cnt = 0;
	for(int i = 0; i <= s.size()-3; i++){
		string t(s, i, 3);
		if(t == "red")
			cnt++;
	}
	if(cnt >= 2)
		cout<<"Yes";
	else
		cout<<"No";
	return 0;
}
